package com.kayt.cyberBar.cyber.business.service;

import com.kayt.cyberBar.common.PageData;
import com.kayt.cyberBar.common.ServerResponse;
import com.kayt.cyberBar.cyber.business.entity.po.BCyberInfo;
import com.kayt.cyberBar.cyber.business.entity.vo.CyberInfoVO;

import javax.ws.rs.*;

/**
 * Description
 *
 * @author Kevin
 * @since 12/26/2017 17:50
 */
@Path("/cyberInfo")
@Produces({"application/json", "application/xml"})
@Consumes({"application/json"})
public interface ICyberInfoService {

    @POST
    @Path("save.do")
    ServerResponse save(CyberInfoVO info);

    @POST
    @Path("update.do")
    ServerResponse update(CyberInfoVO info);

    @POST
    @Path("getInfo.do")
    ServerResponse<BCyberInfo> getInfo(CyberInfoVO id);
    
    @POST
    @Path("getInfoByCode.do")
    ServerResponse<BCyberInfo> getInfoByCode(CyberInfoVO vo);

    @POST
    @Path("delete.do")
    ServerResponse<String> delete(CyberInfoVO vo);

    @POST
    @Path("getData.do")
    ServerResponse<PageData<BCyberInfo>> getData(CyberInfoVO vo);
    
}
